package com.car.car.enums;

public enum  ResultEnums {

    PARAM_ERROR(1,"参数不正确"),

    PRODUCT_NOT_EXIST(10,"商品不存在"),
    PRODUCT_STOCK_ERROR(20,"库存不正确"),
    ORDER_NOT_EXIST(30,"订单不存在"),
    ORDERDETIAL_NOT_EXIST(40,"订单详情不存在"),
    ORDER_ERROR_STATUS(50,"订单状态异常"),
    ORDER_UPDATE_FAIL(60,"订单更新失败"),
    ORDER_DETAIL_EMPTY(70,"订单商品为空"),
    ERROR_PAY_STATUS(80,"支付状态不正确"),
    CART_EMPTY(90,"购物车不能为空"),
    ORDER_OWNER_ERROR(100,"订单用户不一致")
    ;

    private Integer code;

    private String message;

    ResultEnums(Integer code, String message){
        this.code = code;
        this.message=message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
